import { post } from "@/utils/request";

/**
 * 题库详情
 * @param data
 */
export function fetchDetail(id) {
  return post("/api/exam/detail", { id: id });
}

/**
 * 保存题库
 * @param data
 */
export function saveData(data) {
  return post("/api/exam/save", data);
}

/**
 * 题库详情
 * @param data
 */
export function fetchList() {
  return post("/api/exam/paging-exam", { current: 1, size: 100 });
}
